<template>
  <div class="fullscreen">
    <i class="el-icon-full-screen" @click="fullscreen"></i>
  </div>
</template>

<script>
// 导入全屏第三方包
import screenfull from 'screenfull'
export default {
name:'myfullscreen',
methods:{
  // 全屏、退出全屏
  fullscreen(){
screenfull.toggle()
  }
}
}
</script>

<style>

</style>
